<?xml version="1.0" encoding="UTF-8"?>
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:fn="http://java.sun.com/jsp/jstl/functions"
	xmlns:p="http://primefaces.org/ui"
	template="/templates/unloggedTemplate.xhtml">

	<ui:define name="content">
		<h1 class="formTitle ui-widget-header ui-corner-all">#{msg['label.login.titulo']}</h1>
		<h:form id="formLogin">
			<h:panelGrid columns="2">
				<h:outputLabel for="login" value="#{msg['label.login.usuario']}" />
				<p:inputText value="#{loginBean.login}" />
				<h:outputLabel for="password" value="#{msg['label.login.senha']}" />
				<p:password value="#{loginBean.password}" />
			</h:panelGrid>
			<p:commandButton value="Login" label="#{msg['botao.entrar']}"
					action="#{loginBean.login}" update="formLogin" />
			<p:messages />
		</h:form>
	</ui:define>

</ui:composition>